<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE >
<html>
   <head>
		<base href="<%=basePath%>">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>无标题文档</title>
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<!--引入JQ  -->
		<script type="text/javascript" src="js/new_file.js"></script>
		<!--声明Jquery代码域  -->
		<script type="text/javascript">
			$(function(){
				$("form").submit(function(){
					if($("#newPwd").val()==""){//校验新密码
						alert("新密码不能为空");
						return false;
					}else if($("#cfPwd").val()==""){//校验确认密码
						alert("确认密码不能为空");
						return false;
					}else if($("#newPwd").val()!= $("#cfPwd").val()){
					    alert("两次密码不正确");
					    return false;
					}else{
						return true;
					}
				})
			})
		</script>
  </head>
  
  <body>
    <div class="place">
    <span>位置：</span>
    <ul class="placeul">
	    <li><a href="javascript:void(0)">首页</a></li>
	    <li><a href="javascript:void(0)">个人信息</a></li>
	    <li><a href="javascript:void(0)">修改密码</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
	    <div class="formtitle"><span>基本信息</span></div>
	    
	    <ul class="forminfo">
		    <form action="cs" method="post" target="_parent">	
			    <li><label>新密码</label><input name="newPwd" id="newPwd" type="password" class="dfinput" /><i> </i></li>
			    <li><label>确认密码</label><input name="" id="cfPwd" type="password" class="dfinput" /><i> </i></li>
			   
			    <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="确认保存" style="color: white;background-color: red;"/></li>
		     	<input type="hidden" name="oper" value="pwd"/>
		     </form>
	    </ul>
   
    </div>
  </body>
</html>
